﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="UpdateVoter.aspx.cs" Inherits="EDMS.UpdateVoter"
    MasterPageFile="~/MainMaster.Master" %>

<%@ Register Assembly="DevExpress.Web.ASPxEditors.v10.2, Version=10.2.3.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dx" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" runat="server" ContentPlaceHolderID="MainContent">
    <h1 class="DemoTitle">
        修改选民信息
    </h1>
    <div id="DemoArea">
    </div>
    <div>
        <table cellspacing="0" cellpadding="0" border="0" style="width: 98%">
            <tr>
                <td height="25" width="30%" align="right">
                    <dx:ASPxLabel ID="l1" runat="server" Text="选举编号：">
                    </dx:ASPxLabel>
                </td>
                <td height="25" width="*" align="left">
                    <dx:ASPxComboBox ID="cmbXjbh" runat="server" DataSourceID="SDSXjbh" ValueType="System.String"
                        TextField="Xjbh" ValueField="Xjbh" ReadOnly="True">
                    </dx:ASPxComboBox>
                </td>
            </tr>
            <tr>
                <td height="25" width="30%" align="right">
                    <dx:ASPxLabel ID="l2" runat="server" Text="选民姓名：">
                    </dx:ASPxLabel>
                </td>
                <td height="25" width="*" align="left">
                    <dx:ASPxTextBox ID="txtXmxm" runat="server" Width="170px">
                    </dx:ASPxTextBox>
                </td>
            </tr>
            <tr>
                <td height="25" width="30%" align="right">
                    <dx:ASPxLabel ID="ASPxLabel1" runat="server" Text="曾用名：">
                    </dx:ASPxLabel>
                </td>
                <td height="25" width="*" align="left">
                    <dx:ASPxTextBox ID="txtCym" runat="server" Width="170px">
                    </dx:ASPxTextBox>
                </td>
            </tr>
            <tr>
                <td height="25" width="30%" align="right">
                    <dx:ASPxLabel ID="ASPxLabel2" runat="server" Text="住址：">
                    </dx:ASPxLabel>
                </td>
                <td height="25" width="*" align="left">
                    <dx:ASPxTextBox ID="txtZz" runat="server" Width="170px">
                    </dx:ASPxTextBox>
                </td>
            </tr>
            <tr>
                <td height="25" width="30%" align="right">
                    <dx:ASPxLabel ID="l3" runat="server" Text="身份证号：">
                    </dx:ASPxLabel>
                </td>
                <td height="25" width="*" align="left">
                    <dx:ASPxTextBox ID="txtSfzh" runat="server" Width="170px">
                    </dx:ASPxTextBox>
                </td>
            </tr>
            <tr>
                <td height="25" width="30%" align="right">
                    <dx:ASPxLabel ID="l4" runat="server" Text="手机号码：">
                    </dx:ASPxLabel>
                </td>
                <td height="25" width="*" align="left">
                    <dx:ASPxTextBox ID="txtSjhm" runat="server" Width="170px">
                    </dx:ASPxTextBox>
                </td>
            </tr>
            <%--<tr>
                <td height="25" width="30%" align="right">
                    <dx:ASPxLabel ID="l5" runat="server" Text="委托标记：">
                    </dx:ASPxLabel>
                </td>
                <td height="25" width="*" align="left">
                    <dx:ASPxComboBox ID="cmbWtbj" runat="server" SelectedIndex="0" ValueType="System.String">
                        <Items>
                            <dx:ListEditItem Selected="True" Text="Y" Value="y" />
                            <dx:ListEditItem Text="N" Value="n" />
                        </Items>
                    </dx:ASPxComboBox>
                </td>
            </tr>--%>
            <tr>
                <td height="25" width="30%" align="right">
                    <dx:ASPxLabel ID="l6" runat="server" Text="剩余被委托次数：">
                    </dx:ASPxLabel>
                </td>
                <td height="25" width="*" align="left">
                    <dx:ASPxTextBox ID="txtSybwtcs" runat="server" Width="170px">
                    </dx:ASPxTextBox>
                </td>
            </tr>
            <tr>
                <td height="25" width="30%" align="right">
                    <dx:ASPxLabel ID="l7" runat="server" Text="性别：">
                    </dx:ASPxLabel>
                </td>
                <td height="25" width="*" align="left">
                    <dx:ASPxComboBox ID="cmbXb" runat="server" ValueType="System.String">
                        <Items>
                            <dx:ListEditItem Text="女" Value="F" />
                            <dx:ListEditItem Text="男" Value="M" />
                        </Items>
                    </dx:ASPxComboBox>
                </td>
            </tr>
            <tr>
                <td height="25" width="30%" align="right">
                    <dx:ASPxLabel ID="l8" runat="server" Text="生日：">
                    </dx:ASPxLabel>
                </td>
                <td height="25" width="*" align="left">
                    <dx:ASPxDateEdit ID="deSr" runat="server">
                    </dx:ASPxDateEdit>
                </td>
            </tr>
            <tr>
                <td align="right">
                    <dx:ASPxButton ID="btnOK" runat="server" Width="60px" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                        CssPostfix="Office2010Blue" OnClick="btnOK_Click" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                        Text="修改">
                    </dx:ASPxButton>
                </td>
                <td>
                    <dx:ASPxButton ID="btnEsc" runat="server" Text="取消" Width="60px" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                        CssPostfix="Office2010Blue" 
                        SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
                        onclick="btnEsc_Click">
                    </dx:ASPxButton>
                </td>
            </tr>
        </table>
        <asp:SqlDataSource ID="SDSXjbh" runat="server" ConnectionString="<%$ ConnectionStrings:DelegateConnectionString%>"
            SelectCommand="SELECT [xjbh] FROM [Xjdj]"></asp:SqlDataSource>
    </div>
</asp:Content>
